package com.ocean.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocean.common.annotation.Excel;
import com.ocean.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目附件父表对象 t_s_attachment
 *
 * @author ocean
 * @date 2023-02-06
 */
public class TSAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private String ID;

    /** 附件内容 */
    @Excel(name = "附件内容")
    private byte[] attachmentcontent;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String attachmenttitle;

    /** 业务类主键 */
    @Excel(name = "业务类主键")
    private String businesskey;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 扩展名 */
    @Excel(name = "扩展名")
    private String extend;

    /**  */
    @Excel(name = "")
    private String note;

    /** 附件物理路径 */
    @Excel(name = "附件物理路径")
    private String realpath;

    /** 子类名称全路径 */
    @Excel(name = "子类名称全路径")
    private String subclassname;

    /** swf格式路径 */
    @Excel(name = "swf格式路径")
    private String swfpath;

    /**  */
    @Excel(name = "")
    private String BUSENTITYNAME;

    /**  */
    @Excel(name = "")
    private String INFOTYPEID;

    /**  */
    @Excel(name = "")
    private Long USERID;

    private TSDocument document;

    public TSDocument getDocument() {
        return document;
    }

    public void setDocument(TSDocument document) {
        this.document = document;
    }

    public void setID(String ID)
    {
        this.ID = ID;
    }

    public String getID()
    {
        return ID;
    }
    public void setAttachmentcontent(byte[] attachmentcontent)
    {
        this.attachmentcontent = attachmentcontent;
    }

    public byte[] getAttachmentcontent()
    {
        return attachmentcontent;
    }
    public void setAttachmenttitle(String attachmenttitle)
    {
        this.attachmenttitle = attachmenttitle;
    }

    public String getAttachmenttitle()
    {
        return attachmenttitle;
    }
    public void setBusinesskey(String businesskey)
    {
        this.businesskey = businesskey;
    }

    public String getBusinesskey()
    {
        return businesskey;
    }
    public void setCreatedate(Date createdate)
    {
        this.createdate = createdate;
    }

    public Date getCreatedate()
    {
        return createdate;
    }
    public void setExtend(String extend)
    {
        this.extend = extend;
    }

    public String getExtend()
    {
        return extend;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setRealpath(String realpath)
    {
        this.realpath = realpath;
    }

    public String getRealpath()
    {
        return realpath;
    }
    public void setSubclassname(String subclassname)
    {
        this.subclassname = subclassname;
    }

    public String getSubclassname()
    {
        return subclassname;
    }
    public void setSwfpath(String swfpath)
    {
        this.swfpath = swfpath;
    }

    public String getSwfpath()
    {
        return swfpath;
    }
    public void setBUSENTITYNAME(String BUSENTITYNAME)
    {
        this.BUSENTITYNAME = BUSENTITYNAME;
    }

    public String getBUSENTITYNAME()
    {
        return BUSENTITYNAME;
    }
    public void setINFOTYPEID(String INFOTYPEID)
    {
        this.INFOTYPEID = INFOTYPEID;
    }

    public String getINFOTYPEID()
    {
        return INFOTYPEID;
    }
    public void setUSERID(Long USERID)
    {
        this.USERID = USERID;
    }

    public Long getUSERID()
    {
        return USERID;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("attachmentcontent", getAttachmentcontent())
            .append("attachmenttitle", getAttachmenttitle())
            .append("businesskey", getBusinesskey())
            .append("createdate", getCreatedate())
            .append("extend", getExtend())
            .append("note", getNote())
            .append("realpath", getRealpath())
            .append("subclassname", getSubclassname())
            .append("swfpath", getSwfpath())
            .append("BUSENTITYNAME", getBUSENTITYNAME())
            .append("INFOTYPEID", getINFOTYPEID())
            .append("USERID", getUSERID())
            .toString();
    }
}
